package com.zhiche.lisa.oms.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 订单各类联系人信息
 * </p>
 *
 * @author qichao
 * @since 2018-06-18
 */
@TableName("lisa_order_contact")
public class OrderContact extends Model<OrderContact> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;

	/**
	 * 租户ID
	 */
	@TableField("tenant_id")
	private Long tenantId;

    /**
     * 地点编码
     */
	@TableField("order_location_code")
	private String orderLocationCode;
    /**
     * 联系人姓名
     */
	@TableField("contacts_name")
	private String contactsName;
    /**
     * 联系人电话
     */
	@TableField("contacts_phone")
	private String contactsPhone;
    /**
     * 订单编码
     */
	@TableField("order_code")
	private String orderCode;

	@TableField("is_delete")
	@TableLogic
	private Integer isDelete;

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOrderLocationCode() {
		return orderLocationCode;
	}

	public void setOrderLocationCode(String orderLocationCode) {
		this.orderLocationCode = orderLocationCode;
	}

	public String getContactsName() {
		return contactsName;
	}

	public void setContactsName(String contactsName) {
		this.contactsName = contactsName;
	}

	public String getContactsPhone() {
		return contactsPhone;
	}

	public void setContactsPhone(String contactsPhone) {
		this.contactsPhone = contactsPhone;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "OrderContact{" +
			", id=" + id +
			", orderLocationCode=" + orderLocationCode +
			", contactsName=" + contactsName +
			", contactsPhone=" + contactsPhone +
			", orderCode=" + orderCode +
			"}";
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}
}
